package cn.shengchao.examstar.gankao.infrastrure.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "gk_sync_task")
public class GkSyncTask {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 更新版本（根据时间戳生成版本记录）
     */
    @TableField(value = "load_version")
    private Long loadVersion;

    /**
     * 0未加载 1加载中 2加载完成4出错
     */
    @TableField(value = "load_status")
    private Integer loadStatus;
    /**
     * 0未加载 1加载中 2加载完成4出错
     */
    @TableField(value = "load_special_status")
    private Integer loadSpecialStatus;
    /**
     * 0未加载 1加载中 2加载完成4出错
     */
    @TableField(value = "load_detail_status")
    private Integer loadDetailStatus;

    @TableField(value = "load_msg")
    private String loadMsg;

    /**
     * 加载时间
     */
    @TableField(value = "load_time")
    private Date loadTime;

    /**
     * 0未同步 1已同步 4出错
     */
    @TableField(value = "sync_local_status")
    private Integer syncLocalStatus;

    /**
     * 同步信息
     */
    @TableField(value = "sync_local_msg")
    private String syncLocalMsg;
}